<?php

use think\facade\Route;

/**
 * 商家申请相关路由
 */
Route::group('businessApply', function () {
    Route::get('/index', 'businessApply/index');
    Route::get('/getList', 'businessApply/getList');
    Route::get('/add', 'businessApply/add');
    Route::get('/edit', 'businessApply/edit');
    Route::get('/selectUser', 'businessApply/selectUser');
    Route::post('/addSave', 'businessApply/addSave');
    Route::post('/save', 'businessApply/save');
    Route::post('/update', 'businessApply/update');
    Route::post('/delete', 'businessApply/delete');
})->middleware('verify');

/**
 * 商家相关路由
 */
Route::group('business', function () {
    Route::get('/index', 'business/index');
    Route::get('/getList', 'business/getList');
    Route::get('/edit', 'business/edit');
    Route::post('/save', 'business/save');
    Route::post('/update', 'business/update');
    Route::post('/delete', 'business/delete');
})->middleware('verify');

/**
 * 商家上传视频申请相关路由
 */
Route::group('businessVideoApply', function () {
    Route::get('/index', 'businessVideoApply/index');
    Route::get('/getList', 'businessVideoApply/getList');
    Route::get('/edit', 'businessVideoApply/edit');
    Route::post('/save', 'businessVideoApply/save');
    Route::post('/update', 'businessVideoApply/update');
    Route::post('/delete', 'businessVideoApply/delete');
})->middleware('verify');

/**
 * 商家账号管理
 */
Route::group('businessAdmin', function () {
    Route::get('/index', 'businessAdmin/index');
    Route::get('/getList', 'businessAdmin/getList');
    Route::rule('/login', 'businessAdmin/login');
})->middleware('verify');